package org.example.spring_frist.LibraryProject.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.example.spring_frist.LibraryProject.model.bookInfo;

import java.util.List;

/**
 * 使用dao调用mapper
 */
@Mapper
public interface bookInfoMapper {
    //查询所有
    List<bookInfo> getBookInfoAll();

    bookInfo getBookInfoById(int id);

    //增
    int addBookInfo(bookInfo bookInfo);

    //改
    int updateBookInfo(bookInfo bookInfo);

    //删
    int deleteBookInfoById(Integer bookId);
}
